package com.liu.BITOperation;

import java.util.Scanner;

public class FloatBinaryRepresent {
    // 0~1之间浮点实数的二进制表示
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        double num = sc.nextDouble();
        StringBuilder sb = new StringBuilder("0.");
        while (num > 0) {
            // 取整数
            double r = num * 2;
            // 判断整数部分
            if (r >= 1){
                sb.append("1");
                // 消除掉整数部分
                num = r - 1;
            }else {
                sb.append("0");
                num = r;
            }
            if (sb.length() > 34){
                System.out.println("ERROR");
                return;
            }
        }
        System.out.println(sb.toString());
    }
}
